/*
 * IFDBEmp.java
 *
 * Created on 5. oktober 2006, 13:53
 *
 
 */

package DBLayer;
import ModelLayer.*;
import java.util.ArrayList;
/**
 * Interface to the DBEmployeer
 * @author kbh
 */
public interface IFDBPro {
    // get all employees
    public ArrayList<Product> getAllProducts(boolean retriveAssociation);  
    //get one employee having the ssn
    public Product findProduct(int productId, boolean retriveAssociation);
    //find one employee having the name
    public int deleteProduct(int productId);
    
    public int insertProduct(Product pro);
    
    public int updateProduct(Product pro);    
    
    public Product SearchProductName(String name, boolean retriveAssociation);
    public int getMaxId();
  
}